package message;

import java.io.Serializable;
/**
 * this class represent the massage "NEW_CLIENT"
 * implement the interface message
 * @author ran
 *
 */
public class NewClient implements Message,Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	String username;
	String pass;	
	String email;
	String ComputerName;
	String boxName;
	String path;
	
	/**
	 * constructor of the class and reset all it's members
	 * @param username
	 * @param pass
	 * @param email
	 * @param computerName
	 * @param computerIp
	 */
	public NewClient(String username, String pass, String email,
			String computerName, String path,String boxName) {
		this.username = username;
		this.pass = pass;
		this.email = email;
		this.ComputerName = computerName;
		this.path=path;
		this.boxName=boxName;
	}
	
	public void setBoxName(String boxName) {
		this.boxName = boxName;
	}
	
	/**
	 * @Override getType method in Message interface
	 */
	public MessageType getType() {
		return MessageType.NEW_CLIENT;
	}
	//getters and setters
	public String getUsername() {
		return username;
	}


	public void setUsername(String username) {
		this.username = username;
	}


	public String getPass() {
		return pass;
	}


	public void setPass(String pass) {
		this.pass = pass;
	}


	public String getEmail() {
		return email;
	}


	public void setEmail(String email) {
		this.email = email;
	}


	public String getComputerName() {
		return ComputerName;
	}


	public void setComputerName(String computerName) {
		ComputerName = computerName;
	}

	
	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getBoxName() {
		return boxName;
	}
}